home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19951130-19960209 / 000412_news@columbia.edu _Thu Feb 1 10:55:07 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id KAA16327 for <kermit.misc@watsun>; Thu, 1 Feb 1996 10:55:06 -0500 (EST)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id KAA17611 for kermit.misc@watsun; Thu, 1 Feb 1996 10:55:01 -0500 (EST)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: Printing with C-kermit
  8. Date: 1 Feb 1996 15:54:54 GMT
  9. Organization: Columbia University
  10. Lines: 47
  11. Message-ID: <4eqnoe$h67@apakabar.cc.columbia.edu>
  12. References: <Pine.SOL.3.91.960131150517.1435A-100000@bingsun2-gw>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <Pine.SOL.3.91.960131150517.1435A-100000@bingsun2-gw>,
  16.  <br00031@bingsuns.cc.binghamton.edu> wrote:
  17. >This may not actually be a kermit question, but here goes.  Recently I
  18. >installed linux on my pc.  On my university account I use the pine mailer.
  19. >Pine has a print to attached ansi printer command.  I have used this
  20. >successfully in dos/windows with mskermit.  When I try to print while
  21. >connected via C-Kermit in linux the text is just scrolled on the screen. 
  22. >"lpr filename" prints fine, so I know the printer is connected and setup. 
  23. >I thought it might be a problem with C-Kermit.  If it is please tell me
  24. >how I fix it.  Thank you
  25. >
  26. UNIX (including Linux) C-Kermit does not include a terminal emulator.
  27. The terminal emulation is being done by your console window, xterm window,
  28. or whatever other kind of window you are running Kermit in.  Evidently it
  29. does not support the printer-related escape sequences.  Maybe you can find
  30. another VT emulation window for Linux that does.
  31.  
  32. The way to fix it in Kermit is a bit complicated.  Off the top of my head,
  33. without any debugging or testing (which I'll leave to you):
  34.  
  35.  1. Make sure you have C-Kermit 5A(190), which is the current version.
  36.     Make sure there is also a copy of it on the same computer that
  37.     Pine is running on.
  38.  
  39.  2. Tell your copy of Kermit (perhaps in your init file) to
  40.     "set terminal apc on" (without the quotes).
  41.  
  42.  3. I think (but I'm not sure) that Pine lets you configure the command
  43.     to use for printing.  Then it would be:
  44.  
  45.       kermit -C "apc server, remote print xxx, finish"
  46.  
  47.     (WITH the quotes), where xxx is the filename.
  48.  
  49. Hmmm...  There is a flaw in this, namely that it's not a file, but a
  50. message, and is probably being piped through standard i/o.  But there is
  51. no way to tell C-Kermit's "remote print" command to read from standard
  52. input.  So if you could configure Pine to give a series of commands like
  53. this for printing:
  54.  
  55.       <save the message to temp file xxx>
  56.       kermit -C "apc server, remote print xxx, finish"
  57.       <delete temp file xxx>
  58.  
  59. this should achieve the desired effect.
  60.  
  61. - Frank